package com.xltq.conformity.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Value;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author 王权富贵
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "admin_user")
@ApiModel(value = "用户实体类", description = "用于返回用户类型或接收用户类型的数据")
public class AdminUser implements Serializable {
    @ApiModelProperty(value = "主键id", example = "1")
    @Id
    private Integer id;
    @ApiModelProperty(value = "用户密码", example = "112222")
    private String password;
    @ApiModelProperty(value = "邮箱地址", example = "1455347279@qq.com")
    private String email;
    @ApiModelProperty(value = "用户名", example = "董卓")
    @JsonProperty("username")
    private String realName;
    @ApiModelProperty(value = "状态信息 0未授权 1已授权", example = "1")
    private String status;
}
